package com.lkc.mapper;

import com.lkc.bean.User;
import com.lkc.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserDao {
    int add(@Param("param") User user);
    int del(@Param("id") Integer userId);
    int edit(@Param("param") User user);
    User one(@Param("id") Integer userId);
    List<User> all(@Param("param") User user);
    int pageCount(@Param("param") User user);
    List<User> page(@Param("page") Page page, @Param("param") User user);
    User getByUsername(@Param("username") String username);
}
